import MultiplyQuestionList from "./MultiplyQuestionList";
import QuestionList from "./QuestionList";
import PlusQuestionList from "./PlusQuestionList";
import ApiQuestionList from "./ApiQuestionList";

export default class QuestionListFactory {
  static createByType(type:string):QuestionList{
    console.log('题目类型',type)
    if (type=='multiply'){
      return new MultiplyQuestionList(type)
    }else if(type=='plus'){
      return new PlusQuestionList(type)
    }else if (type=='api'){
      return new ApiQuestionList(type)
    }
  }
}
